'\" te
.\"  Copyright 1989 AT&T  Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH UCONTEXT.H 3HEAD "Aug 30, 2002"
.SH NAME
ucontext.h, ucontext \- user context
.SH SYNOPSIS
.LP
.nf
#include <\fBucontext.h\fR>
.fi

.SH DESCRIPTION
.sp
.LP
The  <\fBucontext.h\fR> header defines the \fBucontext_t\fR type as a structure
that includes at least the following members:
.sp
.in +2
.nf
ucontext_t  uc_link
sigset_t    uc_sigmask
stack_t     uc_stack
mcontext_t  uc_mcontext
.fi
.in -2

.sp
.LP
The \fBuc_link\fR member is a pointer to the context that to be resumed when
this context returns. If \fBuc_link\fR is equal to 0, this context is the main
context and the process exits when this context returns.
.sp
.LP
The \fBuc_sigmask\fR member defines the set of signals that are blocked when
this context is active. See \fBsigprocmask\fR(2).
.sp
.LP
The \fBuc_stack\fR member defines the stack used by this context. See
\fBsigaltstack\fR(2).
.sp
.LP
The \fBuc_mcontext\fR member contains the saved set of machine registers and
any implementation-specific context data. Portable applications should not
modify or access \fBuc_mcontext\fR.
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(7) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Standard
.TE

.SH SEE ALSO
.sp
.LP
.BR getcontext (2),
.BR sigaction (2),
.BR sigaltstack (2),
.BR sigprocmask (2),
.BR makecontext (3C),
.BR attributes (7),
.BR standards (7)
